import axios from "@/utils/request";

// 医疗药品出入库
// 添加 /drugs/add
export const drugsAddReq = (data) =>
  axios({
    url: "/drugs/add",
    data,
    method: "post",
  });
// 获取列表 /drugs/list
export const drugsListReq = (params) =>
  axios({
    url: "/drugs/list",
    params,
    method: "get",
  });
// 查询医疗药品
export const drugsSearchReq = (params) =>
  axios({
    url: "/drugs/search",
    params,
    method: "get",
  });

// 删除单个医疗药品
export const drugsDelReq = (params) =>
  axios({
    url: "/drugs/del",
    params,
    method: "get",
  });

// 批量删除医疗药品
export const drugsBatchdelReq = (data) =>
  axios({
    url: "/drugs/batchdel",
    data,
    method: "post",
  });

// 修改医疗药品
export const drugsEditReq = (params) =>
  axios({
    url: "/drugs/edit",
    params,
    method: "get",
  });

// 中西医药房
// 查询全科室处方列表
export const recipelListReq = (params) =>
  axios({
    url: "/recipel/list",
    params,
    method: "get",
  });

// 根据id查询处方详情
export const recipelInfobyidReq = (params) =>
  axios({
    url: "/recipel/infobyid",
    params,
    method: "get",
  });

// 营收数据表
export const infoRevenueReq = () =>
  axios({
    url: "/infomationcenter/revenue",
    method: "get",
  });
